home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / lprint / prnputc.s < prev   
Text File  |  1991-10-18  |  756b  |  33 lines

  1. /*   prnputc.s  : printer library for gcc on FM-TOWNS
  2.  *
  3.  *         (C) Copyright    Makoto Sakai
  4.  *                      Nifty:    ムンパッパ (MHB02550)     
  5.  *                     junet:    sakai@sra.co.jp
  6.  *
  7.  * Permission to use, copy, modify, and distribute this software and its
  8.  * documentation for any purpose and without fee is hereby granted,
  9.  * provided that the above copyright notice appear in all copies and that
  10.  * both that copyright notice and this permission notice appear in
  11.  * supporting documentation.
  12.  */
  13.     .data
  14.     .text
  15.     .globl _prnputc
  16.  
  17. /*
  18.     (void) prnputc(unsigned char cdata) 
  19. */
  20.     .align 4
  21. _prnputc:
  22.     movl  %edx,%eax
  23.     movl  4(%esp),%dl
  24.     pushl %eax
  25. loop:
  26.     movl  $0x0100,%eax
  27.     int   $0x94
  28.     and   %ah,%ah
  29.     jnz   loop
  30.  
  31.     popl  %edx
  32.     ret
  33.